package com.youkeyi.ddy.cloud.common.api.basic.crm.recipient;

import com.youkeyi.ddy.cloud.common.api.basic.crm.recipient.dto.CrmVaccineRecipientListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.recipient.param.CrmVaccineRecipientCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.recipient.param.CrmVaccineRecipientDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.recipient.param.CrmVaccineRecipientQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.recipient.param.CrmVaccineRecipientUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * CrmVaccineRecipientCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/crm/vaccine/recipient/fallback")
public class CrmVaccineRecipientCloudServiceFallback implements CrmVaccineRecipientCloudService {

    @Override
    public CrmVaccineRecipientListCloudDto query(CrmVaccineRecipientQueryCloudParam param) {
        return new CrmVaccineRecipientListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(CrmVaccineRecipientCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(CrmVaccineRecipientUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(CrmVaccineRecipientDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
